package cn.yunyichina.provider.cashpool.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import cn.yunyichina.provider.cashpool.entity.Coupon;
import cn.yunyichina.provider.framework.annotation.MyBatisRepository;
import cn.yunyichina.provider.framework.mvc.dao.BaseDao;
import cn.yunyichina.provider.framework.page.PageInfo;

/**
 *
 * @Author auto_gen_by_tool
 * @CreatedTime 2017-03-23 14:50:44
 */
@Repository
@MyBatisRepository
public interface CouponDao extends BaseDao<cn.yunyichina.provider.cashpool.entity.Coupon> {
    List<Coupon> selectByCondition(@Param("wheres") Coupon wheres, @Param("selects") List<String> selects,
            @Param("orderColumns") List<String> orderColumns, @Param("isAsc") Boolean isAsc,
            @Param("pageInfo") PageInfo pageInfo);

    Long selectByConditionCount(@Param("wheres") Coupon wheres);

    List<Map<String, Object>> selectCouponAfterPayment(Map<String, Object> params);
    
    Long selectCouponAfterPaymentCount(Map<String, Object> params);
}